; -- 64BitTwoArch.iss --
; Demonstrates how to install a program built for two different
; architectures (x86 and x64) using a single installer.

; SEE THE DOCUMENTATION FOR DETAILS ON CREATING .ISS SCRIPT FILES!

[Setup]
AppName=StickyIME
AppVersion=1.1
AppCopyright=Copyright 2012 Cliff Spradlin
AppPublisher=Cliff Spradlin
AppPublisherURL=
DefaultDirName={pf}\StickyIME
UninstallDisplayIcon={app}\StickyIME.exe
Compression=lzma2
SolidCompression=yes
ArchitecturesInstallIn64BitMode=x64

[Registry]
Root: HKLM; Subkey: "SOFTWARE\Microsoft\Windows\CurrentVersion\Run"; ValueType: string; ValueName: "StickyIME"; ValueData: "{app}\StickyIME.exe"; Flags: uninsdeletevalue

[Run]
Filename: "{app}\StickyIME.exe"; Flags: nowait

[UninstallRun]
Filename: "{app}\StickyIME.exe"; Parameters: "shutdown"

[Files]
; Install MyProg-x64.exe if running in 64-bit mode (x64; see above),
; MyProg.exe otherwise.
Source: "Win32\Release\StickyIME.exe"; DestDir: "{app}"
Source: "Win32\Release\StickyIME.dll"; DestDir: "{app}"; Flags: uninsrestartdelete
Source: "x64\Release\StickyIME.exe"; DestDir: "{app}\x64"
Source: "x64\Release\StickyIME.dll"; DestDir: "{app}\x64"; Flags: uninsrestartdelete    
